package com.futureCloudMOM.core.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.futureCloudMOM.core.base.service.impl.BaseServiceImpl;
import com.futureCloudMOM.core.domain.BasicRoutingMaterial;
import com.futureCloudMOM.core.mapper.BasicRoutingMaterialMapper;
import com.futureCloudMOM.core.service.BasicRoutingMaterialService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 【Basic_RoutingMaterial】的数据库操作Service实现
 *
 * @author Administrator
 * @since 2023-06-06 15:19:30
 */
@Service
public class BasicRoutingMaterialServiceImpl extends BaseServiceImpl<BasicRoutingMaterialMapper, BasicRoutingMaterial> implements BasicRoutingMaterialService {

    @Override
    public List<BasicRoutingMaterial> selectListByProcessId(Long processId) {
        return list(new LambdaQueryWrapper<BasicRoutingMaterial>()
                .eq(BasicRoutingMaterial::getRoutingProcessId, processId));
    }

}
